package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 开放城市
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-05-08
 */
@TableName("pf_open_city")
public class PfOpenCity extends Model<PfOpenCity> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 行政区划
     */
    @TableField("ad_name")
    private String adName;
    /**
     * 行政区划代码
     */
    @TableField("ad_code")
    private String adCode;
    /**
     * 父id
     */
    @TableField("father_id")
    private Long fatherId;
    /**
     * 层级
     */
    private Integer level;
    /**
     * 状态：0-不开放；1-开放
     */
    private Integer status;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAdName() {
        return adName;
    }

    public void setAdName(String adName) {
        this.adName = adName;
    }

    public String getAdCode() {
        return adCode;
    }

    public void setAdCode(String adCode) {
        this.adCode = adCode;
    }

    public Long getFatherId() {
        return fatherId;
    }

    public void setFatherId(Long fatherId) {
        this.fatherId = fatherId;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PfOpenCity{" +
        "id=" + id +
        ", adName=" + adName +
        ", adCode=" + adCode +
        ", fatherId=" + fatherId +
        ", level=" + level +
        ", status=" + status +
        ", createTime=" + createTime +
        "}";
    }
}
